<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link href="/admin/styles/general.css" rel="stylesheet" type="text/css" />
	<link href="/admin/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
	<span class="action-span1"><a href="index.php?act=main">SHOP 友情链接管理</a> </span><span id="search_id" class="action-span1"> - 友情链接列表 </span>
	<span class="action-span"><a href="links_add">添加友情链接</a></span>
	<div style="clear:both"></div>
</h1>

<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
  <!-- start goods list -->
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1">
			<tbody>
				<tr>
					<th>友情链接id</th>
					<th>友情链接名称</th>
					<th>友情链接url</th>
					<th>友情链接排序</th>
					<th>前台显示状态</th>
					<th>操作</th>
				</tr>
				@foreach($data as $key=>$value)
				<tr>
				    <td align="center">{{$value->link_id}}</td>
				    <td align="center">{{$value->link_name}}</td>
				    <td align="center">{{$value->link_url}}</td>
				     <td align="center">{{$value->sort}}</td>
				    <td align="center">
				    @if($value->status==0)
                      <img src="/admin/images/yes.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">
				    @else
				      <img src="/admin/images/no.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">
				    @endif
				    </td>
				    <td align="center">
				       <a href="links_update/{{$value->link_id}}">编辑/</a>
				       <a href="links_xian/{{$value->link_id}}">显示/</a>
				       <a href="links_buxian/{{$value->link_id}}">不显示</a>
				    </td>
				    <td></td>
					
				</tr>
				@endforeach
				
  			</tbody>
 		</table>
	<!-- 分页 -->
		<div id="pull_right">
			<span>{!! $data->render() !!}</span>
		</div>
</div>
</form>

<div id="footer">
	版权所有 &copy; 2006-2013 软工教育 - 高级PHP - 
</div>

</body>
</html>
<style type="text/css">
        #pull_right{
            text-align:center;
        }
        .pagination {
            display: inline-block;
            padding-left: 0;
            margin: 20px 0;
            border-radius: 4px;
        }
        .pagination > li {
            display: inline;
        }
        .pagination > li > a,
        .pagination > li > span {
            position: relative;
            float: left;
            padding: 6px 12px;
            margin-left: -1px;
            line-height: 1.42857143;
            color: #428bca;
            text-decoration: none;
            background-color: #fff;
            border: 1px solid #ddd;
        }

        .pagination > .active > a,
        .pagination > .active > span,
        .pagination > .active > a:hover,
        .pagination > .active > span:hover,
        .pagination > .active > a:focus,
        .pagination > .active > span:focus {
            z-index: 2;
            color: #fff;
            cursor: default;
            background-color: #428bca;
            border-color: #428bca;
        }

</style>
